<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <script>
        var user={
            name: "zhangsan",
            age: 3,
            run: function () {
                console.log(this.name+" run...");
            }
        };

        var xiaoming={
            name:"xiaoming"
        }


        var Bird = {
            fly:function(){
                console.log(this.name+" fly...");
            }
        }
        //原型对象
        xiaoming.__proto__ = Bird;
    </script>
</body>
</html>